<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动和清除浮动</title>
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../bootstrap-icons-1.13.1/bootstrap-icons.min.css">
    <style>
        div{
            border:1px solid #000
        }
    </style>
</head>
<body>
    <div class="clearfix">
        <span class="float-left">向左浮动</span>
        <span class="float-right">向右浮动</span>
    </div>
</body>
</html>